package ird.demo.domain;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the HOWARD_IRUGMUTB database table.
 * 
 */
@Embeddable
public class UsrGrpMenuPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="USR_GRP")
	private String usrGrp;

	@Column(name="MENU_ID")
	private String menuId;

	public UsrGrpMenuPK() {
	}
	public String getUsrGrp() {
		return this.usrGrp;
	}
	public void setUsrGrp(String usrGrp) {
		this.usrGrp = usrGrp;
	}
	public String getMenuId() {
		return this.menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof UsrGrpMenuPK)) {
			return false;
		}
		UsrGrpMenuPK castOther = (UsrGrpMenuPK)other;
		return 
			this.usrGrp.equals(castOther.usrGrp)
			&& this.menuId.equals(castOther.menuId);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.usrGrp.hashCode();
		hash = hash * prime + this.menuId.hashCode();
		
		return hash;
	}
}